import java.util.*;


public class MapDemo {

  @SuppressWarnings("unchecked")
  public static void main(String[] args) {
    Map petMap = new HashMap();
    petMap.put("My Cat", "Test");
    System.out.println(petMap);
    System.out.println(petMap.get("My Cat"));

  }
} /* Output:
{My Cat=Cat Molly, My Hamster=Hamster Bosco, My Dog=Dog Ginger}
Dog Ginger
true
true
*///:~
